package com.xteam.purview.entities;


import java.io.Serializable;

/**
 * 用户组织机构关系表
 * @author tangkf
 * @date 2012-01-13
 */
public class PurviewUserOrg implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * 类名称
	 */
	public static final String REF="PurviewUserOrg";

	/**
	 * 关系ID 的属性名
	 */
	public static final String PROP_USERORGID="userOrgId";

	/**
	 * 用户ID 的属性名
	 */
	public static final String PROP_USERID="userId";

	/**
	 * 组织机构ID 的属性名
	 */
	public static final String PROP_ORGID="orgId";

	/**
	 * 关系ID
	 */
	private java.lang.String userOrgId;

	/**
	 * 用户ID
	 */
	private java.lang.String userId;

	/**
	 * 组织机构ID
	 */
	private java.lang.String orgId;

	/**
	 * 获取 关系ID 的属性值
	 * @return userOrgId : 关系ID
	 * @author tangkf
	 */
	public java.lang.String getUserOrgId(){
		return this.userOrgId;
	}

	/**
	 * 设置 关系ID 的属性值
	 * @param userOrgId : 关系ID
	 * @author tangkf
	 */
	public void setUserOrgId(java.lang.String userOrgId){
		this.userOrgId	= userOrgId;
	}

	/**
	 * 获取 用户ID 的属性值
	 * @return userId : 用户ID
	 * @author tangkf
	 */
	public java.lang.String getUserId(){
		return this.userId;
	}

	/**
	 * 设置 用户ID 的属性值
	 * @param userId : 用户ID
	 * @author tangkf
	 */
	public void setUserId(java.lang.String userId){
		this.userId	= userId;
	}

	/**
	 * 获取 组织机构ID 的属性值
	 * @return orgId : 组织机构ID
	 * @author tangkf
	 */
	public java.lang.String getOrgId(){
		return this.orgId;
	}

	/**
	 * 设置 组织机构ID 的属性值
	 * @param orgId : 组织机构ID
	 * @author tangkf
	 */
	public void setOrgId(java.lang.String orgId){
		this.orgId	= orgId;
	}

	/**
	 * 转换为字符串
	 * @author tangkf
	 */
	public String toString(){
		return "{" + "userOrgId(关系ID)=" + userOrgId + "," +"userId(用户ID)=" + userId + "," +"orgId(组织机构ID)=" + orgId + "}";
	}
	/**
	 * 转换为 JSON 字符串
	 * @author tangkf
	 */
	public String toJson(){
		return "{" + "userOrgId:'" + userOrgId + "'," +"userId:'" + userId + "'," +"orgId:'" + orgId + "'}";
	}
}